<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<SCRIPT type="text/javascript">
  	$(document).ready(function(){
		$("#exportExcel").bind("click",function(){
			var startIncomeDate = $("#startIncomeDate").val(),endIncomeDate = $("#endIncomeDate").val();
				$.ajax({   
				    url:'${ctx}/management/report/exportDayIncome.do?startIncomeDate='+startIncomeDate+"&endIncomeDate="+endIncomeDate,   
				    type:'post',   
				    async : true, //默认为true 异步   
				    error:function(){   
				       alert('error');   
				    },   
				    success:function(data){
				    	
				    }
				})
		})
	})
	
</SCRIPT>
<div class="bjui-pageHeader" >
       <form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/management/order/detail/pageList.do" method="post">
	        <input type="hidden" name="pageSize" value="${vo.pageSize}">
	        <input type="hidden" name="pageCurrent" value="${vo.pageCurrent}">
	        <input type="hidden" name="orderField" value="${vo.orderField}">
	       <div class="bjui-searchBar" style="height: 30px;">
	         	<label>开始日期：</label><input type="text"  id="startIncomeDate" name="startIncomeDate" value="${startIncomeDate}" data-toggle="datepicker"/>
	         	<label>结束日期：</label><input type="text"  id="endIncomeDate" name="endIncomeDate" value="${endIncomeDate}" data-toggle="datepicker"/>
	            <button type="submit" class="btn-default" data-icon="search">查询</button>
	        </div>
	   </form>
		 <button type="button" id="exportExcel" class="btn btn-green" >导出EXCEL</button>
	
</div>

<div class="bjui-pageContent">
  <h4 align="right">	
 	 <label for="j_custom_sale" class="control-label x135"><font color="red">还款总金额：${totalMoney} 元 &nbsp;&nbsp;&nbsp;&nbsp;</font></label>
  </h4>
  <form action="${ctx}/management/order/detail/update.do" id="j_custom_form" class="pageForm" data-toggle="validate" method="post">
    <table id="tabledit1" class="table table-bordered table-hover table-striped table-top" data-toggle="tabledit" data-initnum="0" data-action="${ctx}/management/order/detail/update.do" data-single-noindex="true">
  	<thead>
    	<tr>
    	    <th title="INTID" style="display: none;"><input type="text" name="intID" readonly="readonly" size="5"></th>
    		<th>客户姓名</th>
    		<th>身份证号</th>
    		<th>合同号</th>
    		<th>发放日期</th>
    		<th>发放金额</th>
    		<th>银行账号</th>
    		<th>收益人</th>
    		<th>联系电话</th>
    		<th title="状态">
    			<select class="selectpicker show-tick" name="status"  data-rule="required"  data-toggle="selectpicker" >
    			   <option value="1">已发放</option>
                   <option value="0">未发放</option>
                 </select>
    		</th>
    		<th  title="备注"><input type="text" name="remark"  size="15"></th>
    		<th title="操作"  width="100"> 
                	 <a href="javascript:;" class="btn btn-green" data-toggle="dosave">更新</a>
             </th>
    	</tr>
    	</thead>
    	<tbody>
    	<c:forEach var="list" items="${objList}">
	    	<tr>
	    		<td style="display: none;">${list.intID}</td>
	    		<td>${list.custName}</td>
	    		<td>${list.identityNum}</td>
	    		<td>${list.contractNum}</td>
	    		<td>${list.orderMonth}</td>
	    		<td>${list.monthIncome}</td>
	    		<td>${list.bankAccount}</td>
	    		<td>${list.interestName}</td>
	    		<td>${list.linkPhone}</td>
	    		<td data-val="${list.status}">${list.status==0?'未发放':'已发放'}</td>
	    		<td>${list.remark}</td>
	    		<td data-noedit="true">
	    			<button type="button" class="btn-green" data-toggle="doedit">编辑</button>
                 </td>
	    	</tr>
    	</c:forEach>
    	</tbody>
    </table>
   </form>
</div>

<%@ include file="/commons/pagination.jsp" %>

